#-*- coding: utf-8 -*-
from project.application import upload_db as db
import datetime

class UploadFile(db.Model):
    """nginx upload模块的文件名
    """
    __tablename__ = "uploadFile"
    id = db.Column(db.Integer, primary_key = True)
    file_name = db.Column(db.String(256), nullable=False)
    file_size = db.Column(db.Integer)
    file_md5 = db.Column(db.String(64))
    file_date = db.Column(db.DateTime, default = datetime.datetime.now())
    file_cid = db.Column(db.String(128), nullable= False)
    file_path = db.Column(db.String(256))

